<div class="bjui-pageContent">
    <form id="j_admin_add_form" action="{:url('Admin/edit')}" data-toggle="validate" method="post">
        <div class="pageFormContent" data-layout-h="0">
            <input type="hidden" name="aid" value="{$list.aid}"/>
            <table class="table-bordered table-condensed table-hover" width="100%">
                <tbody>
                <tr>
                    <td>
                        <label for="j_username" class="control-label x85">登录帐号：</label>
                        <input type="text" name="username" id="j_username" value="{$list.username}" {eq name="$list.aid" value="1"}disabled{/eq} data-rule="required;username;remote[{:url('Admin/same',['username'=>$list['username']])}]" size="20">
                        <span style="color:#888;"> 登录账号</span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="j_password" class="control-label x85">登录密码：</label>
                        <input type="password" name="password" id="j_password" class="j_pass" value="" data-rule="密码:required" size="20" disabled>
                        <span style="color:#888;"> 登录密码</span>
                        <div style="float:right;">
                            <a class="btn btn-green" href="javascript:;" onclick="$('.j_pass').attr('disabled', false);$('.j_pass').val('');" data-icon="edit" title="修改密码"></a>
                            <a class="btn btn-orange" href="javascript:;" onclick="$('.j_pass').attr('disabled', true);$('.j_pass').val('');" data-icon="undo" title="取消修改"></a>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="j_password1" class="control-label x85">确认密码：</label>
                        <input type="password" value="" class="j_pass" data-rule="确认密码:required;match(password)" size="20" disabled>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="j_nickname" class="control-label x85">账号昵称：</label>
                        <input type="text" name="nickname" id="j_nickname" value="{$list.nickname}" data-rule="required;nickname;remote[{:url('Admin/same',['nickname'=>$list['nickname']])}]" size="20">
                    </td>
                </tr>
                <tr>
                    <td>
                        <table>
                            <tr>
                                <td><label for="j_group_id" class="control-label x85">权限群组：</label></td>
                                <td>
                                {volist name="gArr" id="row"}
                                    <div style="margin:2px;width:120px;padding:5px;overflow:hidden;border:1px dotted #ff6601;float:left;{if ($i % 3) == 1}clear:both;{/if}">
                                        <input type="checkbox" name="gid[]" id="j_group_id_{$key}" data-toggle="icheck" {in name="$row.id" value="$list.group"}checked{/in} value="{$row.id}" data-label="{$row.title}">
                                    </div>
                                {/volist}
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="j_desc" class="control-label x85">备注信息：</label>
                        <input type="text" name="desc" id="j_desc" data-rule="" value="{$list.desc}" size="20"/>
                    </td>
                </tr>
                <tr>
                    <td style="height:35px;">
                        <label for="" class="control-label x85">使用状态：</label>
                        <input type="radio" name="status" id="j_lock1" data-toggle="icheck" value="1" {eq name="list.status" value="1"}checked{/eq} data-label="正常&nbsp;&nbsp;">
                        <input type="radio" name="status" id="j_lock2" data-toggle="icheck" value="0" {eq name="list.status" value="0"}checked{/eq} data-label="冻结">
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close" data-icon="undo">取消</button></li>
        <li><button type="submit" class="btn-green" data-icon="save">保存</button></li>
    </ul>
</div>